﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace SharpMail.MSA
{
    public class MSAConfiguration
    {
        public IPEndPoint ListenerEndpoint { get; private set;}


        public MSAConfiguration()
        {
            this.ListenerEndpoint = new IPEndPoint(IPAddress.Any, 587);
        }


        public MSAConfiguration ListenOn(IPEndPoint endpoint)
        {
            this.ListenerEndpoint = endpoint;
            return this;
        }

        public MSAConfiguration ListenOn(IPAddress ipAddress, int port)
        {
            this.ListenerEndpoint = new IPEndPoint(ipAddress, port);
            return this;
        }
    }
}
